import React, { Component } from 'react'
import Section from './components/section'
import Active from './components/active'
import ReactDOM from 'react-dom'
export default class App extends Component {
  state = {
    users: [],
    isFirst: true,
    islogding: false,
    err: '',
  }
  updateAppState = (stateObj) => {
    this.setState(stateObj)
  }
  render() {
    return (
      <div className="container">
        <Section updateAppState={this.updateAppState}></Section>
        <Active {...this.state}></Active>
      </div>
    )
  }
}

ReactDOM.render(<App />, document.getElementById('root'))
